bitmap_scnlistprintf() should always zero-terminate its output buffer
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Sep 2011 09:36:55 +0000 (10:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Sep 2011 09:36:55 +0000 (10:36 +0100)
commitcd4ab341d27ee080ccad1cf85a366606a98dbc49
tree196b62280dd6924cd9acd0291f4216045e3aa48a
parent090a5436289faaae79b1f49b29f4eeefc89d017e
bitmap_scnlistprintf() should always zero-terminate its output buffer

... as long as it has non-zero size. So far this would not happen if
the passed in CPU mask was empty.

Also fix the comment describing the return value to actually match
reality.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/bitmap.c